package com.kwd.news.po;

import com.alibaba.fastjson.annotation.JSONType;

@JSONType(orders = {"id", "dataList"})
public class CityList implements Comparable<CityList> {

    private String id;

    private Object[] dataList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Object[] getDataList() {
        return dataList;
    }

    public void setDataList(Object[] dataList) {
        this.dataList = dataList;
    }

    @Override
    public int compareTo(CityList o) {
        int i = Integer.parseInt(this.getId()) - Integer.parseInt(o.getId());//先按照年龄排序
        return i;
    }
}
